import config from "@/config"
import http from "@/utils/request"

export default {
    member: {
        list: {
            url: `${config.API_URL}/v1/user/member/list`,
            name: "用户列表",
            get: async function (params) {
                return await http.get(this.url, params);
            }
        },
        save: {
            url: `${config.API_URL}/v1/user/member/save`,
            name: "保存用户（单个）",
            post: async function (data) {
                return await http.post(this.url, data, {
                    headers: {
                        //'response-status': 401
                    }
                });
            }
        },
        del: {
            url: `${config.API_URL}/v1/user/member/delete`,
            name: "用户删除",
            post: async function (data) {
                return await http.post(this.url, data, {
                    headers: {
                        //'response-status': 401
                    }
                });
            }
        },
        setpwd: {
            url: `${config.API_URL}/v1/user/member/setp`,
            name: "修改密码",
            post: async function (data) {
                return await http.post(this.url, data, {
                    headers: {
                        //'response-status': 401
                    }
                });
            }
        },
    }
}